package tmproject.hlhj.fhp.cartrans.presenter

import android.content.Context
import com.example.mymvp.BasePresenter
import tmproject.hlhj.fhp.cartrans.IView.AboutUsView
import tmproject.hlhj.fhp.cartrans.javaBean.AboutUsBean
import tmproject.hlhj.fhp.cartrans.modules.AboutUsModule

/**
 * Created by Never Fear   on 2018\8\29 0029.
Never More....
 */
class AboutUsPresenter :BasePresenter<AboutUsModule,AboutUsView>(), AboutUsModule.OnUsListener {
    override fun gotUsInfo(aboutUsBean: AboutUsBean) {
        view?.setUsInfo(aboutUsBean)
    }
    fun getUsInfo(c:Context){
        module?.getUs(c)
    }
    override fun createModule() {
        module= AboutUsModule()
        module.listener=this
    }
}